package com.export.xlsx.utils;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by zhangls on 2017/8/7.
 */
public enum TableName {
    OPERATORS("operators", 1),
    BIZ_ZONE("biz_zone", 2),
    CHANNEL("channel", 3),
    STAFF("staff", 4),
    BUSI_STORE("busi_store", 5),

    CHANNEL_ATTR("channel_attr", 6),
    OPERATORS_ATTR("operators_attr", 7),
    STAFF_ATTR("staff_attr", 8),
    BUSI_STORE_ATTR("busi_store_attr", 9),
    BIZ_ZONE_ATTR("biz_zone_attr", 10),

    STAFF_BIZ_ZONE_RELA("staff_biz_zone_rela", 11),
    CHANNEL_BUSI_STORE_RELA("channel_busi_store_rela", 12),
    BUSI_STORE_BIZ_ZONE_RELA("busi_store_biz_zone_rela", 13),
    CHANNEL_BIZ_ZONE_RELA("channel_biz_zone_rela", 14),
    CHANNEL_RELA("channel_rela", 15),
    CHANNEL_OPERATORS_RELA("channel_operators_rela", 16),
    STAFF_OPERATORS_RELA("staff_operators_rela", 17),
    STAFF_CHANNEL_RELA("staff_channel_rela", 18),

    STAFF_CUSTOM_ATTR("staff_custom_attr", 19),
    CHANNEL_CUSTOM_ATTR("channel_custom_attr", 20),
    OPERATORS_CUSTOM_ATTR("operators_custom_attr", 21);

    @Getter
    @Setter
    private String name;
    @Getter
    @Setter
    private Integer index;

    // 构造方法
    private TableName(String name, Integer index) {
        this.name = name;
        this.index = index;
    }
}
